home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!pires.demon.co.uk
- From: Martin Bonner <mbonner@pires.co.uk>
- Newsgroups: comp.lang.c++
- Subject: Re: Coding Standards
- Date: Fri, 22 Mar 1996 08:50:23 GMT
- Organization: Pi Technology Ltd
- Distribution: world
- Message-ID: <530361771wnr@pires.co.uk>
- References: <4i47qr$q5e@news.halcyon.com> <4hj8ek$elu@sam.inforamp.net> <4hjh5c$elk@flood.weeg.uiowa.edu> <4hv2tm$e93@news.halcyon.com> <4i1ne4$g99@clarknet.clark.net>
- Reply-To: mbonner@pires.co.uk
- X-NNTP-Posting-Host: pires.demon.co.uk
- X-Broken-Date: Friday, Mar 22, 1996 08.50.23 GMT
- X-Newsreader: Newswin Alpha 0.6
- X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!pires.demon.co.uk
-
- >Norm Bryar (normanb@halcyon.com) wrote:
- >: Except you can't put consts in a header for everyone to use and you
- Err, yes you can. By default
- const int foo = 5;
- has static (file) linkage, so each file has its own copy of "foo".
- Provided you don't want to take the address of "foo" (which you
- couldn't do with a #define), this all works.
- --
- Martin Bonner
- Pi Technology, Milton Hall, Cambridge, ENGLAND
- +44 1223 441256
- mbonner@pires.co.uk
-
-